﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DevExpress.Xpo;

namespace WROA.Models.Entitys
{
    public class ApplyDocument : XPObject
    {
        private DateTime ad_time;
        [DbType("datetime")]
        public DateTime Ad_time { get; set; }

        private Users user;
        [Association("ApplyDocumentUser")]
        public Users User
        {
            get { return user; }
            set { user = value; }
        }

        private Flow flow;
        [Association("ApplyDocumentFlow")]
        public Flow Flow
        {
            get { return flow; }
            set { flow = value; }
        }

        private File file;
        public File File { get; set; }

        private string ad_name;
        [DbType("nvarchar(50)")]
        public string Ad_name { get; set; }

        private string ad_remark;
        [DbType("ntext")]
        public string Ad_remark { get; set; }

        private string ad_htmldata;
        [DbType("ntext")]
        public string Ad_htmldata { get; set; }

        private Procedure procedure;
        [Association("ApplyDocumentProcedure")]
        public Procedure Procedure
        {
            get { return procedure; }
            set { procedure = value; }
        }

        private string ad_state;
        [DbType("nvarchar(50)")]
        public string Ad_state { get; set; }

        private string ad_isagree;
        [DbType("nvarchar(50)")]
        public string Ad_isagree { get; set; }
       
        [Association("DocumentApproveApplyDocument", typeof(DocumentApprove))]
        public XPCollection documentapproves
        {
            get
            {
                return GetCollection("documentapproves");
            }
        }
    }
}

